import {Action} from "@/types/utils";

import {WritableDraft} from "immer";

export default function popupReducer(draft: WritableDraft<boolean>, action: Action) {
    switch (action.type) {
        case "close": {
            return false;
        }
        case "open": {
            return true
        }
    }
}